package com.security.hikapp.network;


import com.security.hikapp.network.response.IResponse;

public class ResponseData<T> implements IResponse<T> {
    private String status;
    private String message;
    private T data;

    @Override
    public boolean isSuccess() {
        return "200".equals(status);
//        return "0".equals(code) || "2".equals(code);
    }

    @Override
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
